package cn.itcast.nio.c1;

import java.nio.ByteBuffer;

public class TestByteBufferAllocate {
    public static void main(String[] args) {
        System.out.println(ByteBuffer.allocate(10).getClass());//堆内存
        System.out.println(ByteBuffer.allocateDirect(10).getClass());//直接内存
    }
}
